<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>CSS Grid</title>

  <style>
    .parent {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      grid-column-gap: 10px;
      grid-row-gap: 10px;
    }

    .parent {
      width: 100%
    }
    .parent>div {
      height: 30vh;
      background: rebeccapurple;
    }
  </style>
</head>

<body>
  <div class="parent">

    <div class="child1"></div>
    <div class="child2"></div>
    <div class="child3"></div>
    <div class="child4"></div>
    <div class="child5"></div>
    <div class="child6"></div>

  </div>

  <p><a href="https://cssgrid-generator.netlify.com/">https://cssgrid-generator.netlify.com/</a></p>
</body>

</html>